package com.nbsaas.boot.manufacturing.rest.convert;

import com.nbsaas.boot.manufacturing.data.entity.ManufacturingOrder;
import com.nbsaas.boot.manufacturing.api.domain.response.ManufacturingOrderResponse;

import com.nbsaas.boot.utils.BeanDataUtils;
import com.nbsaas.boot.rest.api.Converter;
/**
* 生产订单-实体对象转化成响应对象
*/

public class ManufacturingOrderResponseConvert  implements Converter<ManufacturingOrderResponse,ManufacturingOrder> {

    @Override
    public ManufacturingOrderResponse convert(ManufacturingOrder source) {
        ManufacturingOrderResponse  result = new  ManufacturingOrderResponse();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }

}

